<div class="form">
    <?php $form = $this->beginWidget('CActiveForm', array(
	'id'=>'image-form',
	'enableAjaxValidation'=>false,
	'focus'=>array($model,'filename'),
	'htmlOptions' => array('enctype'=>'multipart/form-data')
    )); ?>
	<?php echo $form->errorSummary($model); ?>
	<div class="row">
	    <?php echo $form->labelEx($model, 'title'); ?>
	    <?php echo $form->textField($model, 'title'); ?>
	    <?php echo $form->error($model, 'title'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model, 'description'); ?>
		<?php echo $form->textArea($model, 'description', array('style'=>'width: 300px; height: 100px;')); ?>
		<?php echo $form->error($model, 'description'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model, 'created_at'); ?>
		<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
			'language'=>'ru',
			'htmlOptions'=>array(
			),
			'model' => $model,
			'attribute' => 'created_at')); 
		?>
		<?php echo $form->error($model, 'created_at'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model, 'image'); ?>
		<?php echo $form->fileField($model, 'image'); ?>
		<?php echo $form->error($model, 'image'); ?>
	</div>

	<div class="row submit">
	    <?php echo CHtml::submitButton('Сохранить'); ?>
	</div>
    <?php $this->endWidget(); ?>
</div>